
//
//  KLSellerTopView.m
//  used
//
//  Created by xalo on 16/7/20.
//  Copyright © 2016年 王凯. All rights reserved.
//

#import "KLSellerTopView.h"

@interface KLSellerTopView ()

@property (weak, nonatomic) IBOutlet UILabel *sellerName;

@property (weak, nonatomic) IBOutlet UIImageView *iconView;

@property (weak, nonatomic) IBOutlet UILabel *cityLbel;


@end


@implementation KLSellerTopView

+ (instancetype)sellerView {
    return [[NSBundle mainBundle] loadNibNamed:NSStringFromClass(self) owner:self options:nil].lastObject;
}


- (void)setSeller:(KLSeller *)seller {
    _seller = seller;
    
    self.sellerName.text = seller.nickname;
    [self.iconView sd_setImageWithURL:[NSURL URLWithString:seller.photo] placeholderImage:[UIImage imageNamed:@"defaultUserIcon"]];
    self.cityLbel.text = seller.address;

}



@end
